package cn.com.shopec.erp.financing.service;

import java.util.List;

import cn.com.shopec.erp.common.page.PageFinder;
import cn.com.shopec.erp.common.page.PageQuery;
import cn.com.shopec.erp.financing.entity.WhareHouse;

/**
 * 仓库类业务接口
 * @author xiaoyunfei
 *
 */
public interface IWhareHouseServer {
	/**
	 * 获取所有仓库实体
	 * @return
	 */
	public List<WhareHouse> getAllWhareHouse() throws Exception;
	
	/**
	 * 查询虚库
	 * @return
	 */
	public List<WhareHouse> getAllWhareTypeTwo() throws Exception ;
	
	/**
	 * 通过仓库编码获取仓库实体
	 * @return
	 */
	public WhareHouse getWhareHouseByNo(String weNo);
	/**
	 * 分布查询仓库信息
	 * @param pageQuery
	 * @return
	 */
	public PageFinder<WhareHouse> getPagedCollectSetList(PageQuery pageQuery);
	/**
	 * 更新仓库信息
	 * @param whNo
	 * @throws Exception
	 */
	public void updateWhareHouse(WhareHouse whareHouse) throws Exception;
	/**
	 * ajax验证根据名称查找仓库
	 * @param whName
	 * @return
	 */
	public boolean findWhareHouseByName(String id, String  whName);
	/**
	 * ajax验证根据编号查找仓库
	 * @param whName
	 * @return
	 */
	public boolean findWhareHouseByNo(String id, String  whNo);
	/**
	 * 删除仓库信息
	 * @param whNo
	 */
	public void deleteWhareHouse(String whNo)throws Exception;
	/**
	 * 新增仓库信息
	 * @param whareHouse
	 */
	public void addWhareHouse(WhareHouse whareHouse)throws Exception ;
	public WhareHouse getWhareHouseByID(String whNo);
	
}
